package com.cx.mall.common.model.user;

import com.cx.mall.common.utils.EncryptUtils;
import lombok.Data;

@Data
public class UserReceiveAddressDTO extends UserReceiveAddress{
    private static final long serialVersionUID = 1L;

    public String getReceiveAddress (){
        return getProvince()+getCity()+getRegion()+getDetailAddress();
    }

    @Override
    public String getPhoneNumber(){
        return EncryptUtils.hidePhone(super.getPhoneNumber());
    }
}
